@echo -----------------------------------------------------
@echo ==== Set Environment for getResource.bat ====

set DIR_GRAPHICS=X:\BillTreasure_test\Graphics
set DIR_PROGRAM=X:\BillTreasure_test\Program
set DIR_DESIGN=X:\BillTreasure_test\Design
set DIR_TOOLS=X:\BillTreasure_test\Tools

@echo -----------------------------------------------------
@echo ==== Convert World ====

cd %DIR_PROGRAM%
del src\*.png
del src\*.bin

call conv_HDIphone.bat
cd %DIR_PROGRAM%\src
ren a.bin a-hd.bin

cd %DIR_PROGRAM%
call conv_Iphone.bat


@echo -----------------------------------------------------
@echo ==== Copy PNG ====

cd %DIR_GRAPHICS%\Animation

del /f /q *.

copy *. %DIR_PROGRAM%\src



@echo -----------------------------------------------------
@echo ==== Convert Animation ====
rem call img2gli.bat
copy *.png %DIR_PROGRAM%\src


cd %DIR_GRAPHICS%\Background
del /f /q *.
rem call img2gli.bat
copy *.png %DIR_PROGRAM%\src

pause

copy %DIR_GRAPHICS%\splash\*.* %DIR_PROGRAM%\src

cd %DIR_PROGRAM%\src

@echo -----------------------------------------------------
@echo ==== Copy/Rename Resources ====

REM rename data file
del /f /q *.

del /f /q *.img

rem ren *.png *.img

rem del *.png

del /f /q *.gli

cd %DIR_PROGRAM%

rem copy tan src\ 

copy ..\Sound\*.* src
rem copy %DIR_TOOLS%\cfValue.bin src
copy %DIR_PROGRAM%\properties.bin src

copy src\*. classes
copy src\*.png classes



@echo --------------excelConverter.exe------------
java -jar %DIR_TOOLS%\excelConverter_fat.jar %DIR_DESIGN%\GameiniDate.xls %DIR_PROGRAM%\excel_properties1.txt %DIR_PROGRAM%\src\GameiniDate.bin STR_AI_FREE_FRAME_COUNT %DIR_PROGRAM%\excel_properties2.txt Iphone 
@echo --------------------------------------
@echo --------------spritebodyList.xls----------
java -jar %DIR_TOOLS%\excelProps_fat.jar %DIR_DESIGN%\spritebodyList.xls %DIR_PROGRAM%\src\spritebodyList.bin
@echo --------------------------------------

pause 
@echo -----------------------------------------------------
@echo ==== Get Resource End! ====